<template>
  <div>
    <msg-header></msg-header>
    <msg-message></msg-message>
  </div>
</template>
<script>
import MsgHeader from "@/pages/msg/components/Header"
import MsgMessage from "@/pages/msg/components/Message"
export default {
  components: { 
     MsgHeader,
     MsgMessage
  },
  beforeRouteEnter(to, from, next) {
    var UserToken=localStorage.getItem("UserToken");
    if (UserToken) {
       next();
    } else {
       next({ path: '/login', query: { historypath: "/msg" }});
    }
  }
};
</script>